﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 工单BOM
    /// </summary>
    public class VWorkOrderBom : BaseVModel
    {
        private string _productCode = string.Empty;
        private string _productName = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _categoryCode = string.Empty;
        private string _categoryName = string.Empty;
        private string _specifications = string.Empty;
        private string _productCompany = string.Empty;
        private string _unit = string.Empty;

        #region Public Property

        ///<Summary>
        /// 工单ID
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 分类代码
        ///</Summary>
        public string CategoryCode
        {
            get { return string.IsNullOrWhiteSpace(_categoryCode) ? string.Empty : _categoryCode; }
            set { _categoryCode = value; }
        }

        ///<Summary>
        /// 分类名称
        ///</Summary>
        public string CategoryName
        {
            get { return string.IsNullOrWhiteSpace(_categoryName) ? string.Empty : _categoryName; }
            set { _categoryName = value; }
        }

        ///<Summary>
        /// 料号
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// 物料名称
        ///</Summary>
        public string ProductName
        {
            get { return string.IsNullOrWhiteSpace(_productName) ? string.Empty : _productName; }
            set { _productName = value; }
        }

        ///<Summary>
        /// 厂家
        ///</Summary>
        public string ProductCompany
        {
            get { return string.IsNullOrWhiteSpace(_productCompany) ? string.Empty : _productCompany; }
            set { _productCompany = value; }
        }

        /// <summary>
        /// 规格
        /// </summary>
        public string Specifications
        {
            get { return string.IsNullOrWhiteSpace(_specifications) ? string.Empty : _specifications; }
            set { _specifications = value; }
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get { return string.IsNullOrWhiteSpace(_unit) ? string.Empty : _unit; }
            set { _unit = value; }
        }

        ///<Summary>
        /// 总数量
        ///</Summary>
        public decimal Count { get; set; }

        ///<Summary>
        /// 单块组件用量
        ///</Summary>
        public decimal SingleCount { get; set; }
        #endregion
    }
}
